package com.fcscs.cservice.ws.client.inroomservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.inroomservice.GetChargeCategoriesRequest;
import com.fcscs.cservice.ws.schema.inroomservice.GetChargeCategoriesResponse;

public class GetChargeCategoriesClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetChargeCategoriesClient.class);

	public GetChargeCategoriesResponse test(GetChargeCategoriesRequest req) {
		GetChargeCategoriesResponse resp = (GetChargeCategoriesResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv charge categories list size: " + resp.getChargeCategoryViewList().size());
		return resp;
	}
}
